﻿using System;
using UnityEngine;

namespace Valve.VR.InteractionSystem
{
	// Token: 0x02000627 RID: 1575
	public class SoundDeparent : MonoBehaviour
	{
		// Token: 0x060027D4 RID: 10196 RVA: 0x000E7F58 File Offset: 0x000E6158
		private void Awake()
		{
			this.thisAudioSource = base.GetComponent<AudioSource>();
		}

		// Token: 0x060027D5 RID: 10197 RVA: 0x000E7F68 File Offset: 0x000E6168
		private void Start()
		{
			base.gameObject.transform.parent = null;
			if (this.destroyAfterPlayOnce)
			{
				UnityEngine.Object.Destroy(base.gameObject, this.thisAudioSource.clip.length);
			}
		}

		// Token: 0x040027D9 RID: 10201
		public bool destroyAfterPlayOnce = true;

		// Token: 0x040027DA RID: 10202
		private AudioSource thisAudioSource;
	}
}
